<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<title>报单管理</title>
<link rel="stylesheet" href="<?php echo $_BASE_DIR ?>baodan/css/common.css" >
<link rel="stylesheet" href="<?php echo $_BASE_DIR ?>baodan/css/key-management.css" >
</head>

<body>
<header class="header">
    <a class="back" href="javascript:history.back(-1)"></a>
	<div class="title">提现申请管理</div>
</header>
<div style="height:40px;"></div>

<div class="menu-box">
	<ul class="menu clearfix">
		<li class="submenu" id="normal"><p>未打款</p><p><?php echo count($unactive)?></p></li>
		<li class="submenu" id="abnormal"><p>已打款</p><p><?php echo count($active)?></p></li>
		<li class="submenu" id="innormal"><p>打款被拒</p><p><?php echo count($inactive)?></p></li>
	</ul>
</div>

<div class="goods-list25" id="normal_content">
	<ul class="dist-user-list">
	<?php if(count($unactive)){
	       foreach ($unactive as $v){
	    ?>
		<li>
			<div class="subitems1 clearfix"><p><?php echo $v['realname'].'('.$v['acctname'].')'?></p><span>待打款</span></div>
			<div class="subitems2">
			   <p>+<?php echo $v['balance']?> </p>
			 
			</div>
		</li>
		<?php }
		}?>
	</ul>
</div>

<div class="goods-list25" id="abnormal_content">
	<ul class="dist-user-list">
		<?php if(count($active)){
	     foreach ($active as $v){
	    ?>
		<li>
			<div class="subitems1 clearfix"><p><?php echo $v['realname'].'('.$v['acctname'].')'?></p><span>已打款</span></div>
			<div class="subitems2">
			   <p>+<?php echo $v['balance']?> </p>
			   <p>打款时间：<?php echo date('Y-m-d H:i:s',$v['created'])?></p>
			</div>
		</li>
		<?php }
		}?>
	</ul>
	
</div>
<div class="goods-list25" id="innormal_content">
	<ul class="dist-user-list">
		<?php if(count($inactive)){
	     foreach ($inactive as $v){
	    ?>
		<li>
			<div class="subitems1 clearfix"><p><?php echo $v['realname'].'('.$v['acctname'].')'?></p><span>已打款</span></div>
			<div class="subitems2">
			   <p>+<?php echo $v['balance']?> </p>
			   <p>打款时间：<?php echo date('Y-m-d H:i:s',$v['created'])?></p>
			</div>
		</li>
		<?php }
		}?>
	</ul>
	
</div>


<script type="text/javascript" src="<?php echo $_BASE_DIR ?>baodan/js/jquery-3.1.1.min.js"></script>
<script>
$(".submenu:first").addClass("active");
$(".goods-list25").hide().first().show();

    $(function(){
        $(".submenu").click(function(){
            var _this = $(this);
            var _thisId = _this.attr('id');
            $(".submenu").removeClass('active');
            _this.addClass('active');
            $(".goods-list25").hide();
            $("#"+_thisId+"_content").show();
        })
    });


</script>
</body>
</html>
